package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_user_friend_setting;

import cn.com.api.mapper.ApiU_user_friend_settingMapper;

import cn.com.api.service.ApiU_user_friend_settingService;

/**
 * 
 **/
@Service
public class U_user_friend_settingServiceImplBase {
	@Autowired
	private ApiU_user_friend_settingMapper apiU_user_friend_settingMapper;
    
    // 根据id获取
	public ApiU_user_friend_setting findU_user_friend_settingById(Integer id){
		ApiU_user_friend_setting u_user_friend_setting = apiU_user_friend_settingMapper.findU_user_friend_settingById( id );
		return u_user_friend_setting;
	}
    
    //查看数据集
	public List<ApiU_user_friend_setting> findU_user_friend_settings(){
        List<ApiU_user_friend_setting> u_user_friend_settings = apiU_user_friend_settingMapper.findU_user_friend_settings();
		return u_user_friend_settings;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_user_friend_settingsByMap(HashMap condition){
        List<Map<String, Object>> u_user_friend_settings = apiU_user_friend_settingMapper.findU_user_friend_settingsByMap(condition);
		return u_user_friend_settings;
    }
    
	// 添加
	public int insertU_user_friend_setting(ApiU_user_friend_setting u_user_friend_setting){
		int ret_I= apiU_user_friend_settingMapper.insertU_user_friend_setting(u_user_friend_setting);
		return ret_I;
	}

	// 修改
	public int updateU_user_friend_setting(ApiU_user_friend_setting u_user_friend_setting){
		int ret_I= apiU_user_friend_settingMapper.updateU_user_friend_setting(u_user_friend_setting);
		return ret_I;
	}
	
    // 删除
	public int deleteU_user_friend_setting(Integer id){
		int ret_I= apiU_user_friend_settingMapper.deleteU_user_friend_setting( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


